The easiest way to get started with p4 is to play with some of the sample programs provided with the system.
A Message-Passing Example,Analysis of the Program, ,Getting Started